﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    /// <summary>
    /// 课程信息
    /// </summary>
    [Serializable]
	public class CauseInfo
	{
		public CauseInfo()
		{
			m_RID = 0;
			m_SchoolMark = null;

		}

        public CauseInfo(int mRid, string mSchoolMark)
        {
            m_RID = mRid;
            m_SchoolMark = mSchoolMark;
        }

		#region RID
		
		private int m_RID;

        public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region SchoolMark
		
		private string m_SchoolMark;
		
		public string SchoolMark
		{
			get { return m_SchoolMark; }
			set { m_SchoolMark = value; }
		}
		
		#endregion
		

		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			CauseInfo castObj = (CauseInfo) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 40;
			hash = hash * 40
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}